chore: retire harness apparatus, promote knowledge base - #9
Merged
Conversation
…from package Moved raw map posts from Page.data to controller-only this.posts, removed unrendered NearbyPreview/open-count work, and skipped no-selection region-end rebuilds. A 100-post synthetic benchmark reduced average refresh setData payload from 183,539 to 119,848 bytes (-34.7%). project.config.json now excludes .gstack/ and style-comparison.html from the mini program package, avoiding 106,313 B (18.1%) of local non-app input. style-comparison.html is added to .gitignore as a local tool artifact. Static checks and readiness all pass; DevTools/real-device performance remains unverified (service port 9420 blocked).
This project no longer needs the AI/dev-collaboration harness. Migrate the durable product knowledge it held into a first-class knowledge/ base and delete the rest. - Add knowledge/ (14 articles): product, journeys, architecture, data model, trust/safety, privacy/security, sharing/attribution, design, verification, deployment, release readiness, plus an index and maintenance guide. - Fill two gaps from the old harness: WeChat timeline single-page platform constraints and the attribution user_id_hash (irreversible, dedup-only). - Delete harness/ (~135 files) and 24 harness-only evidence scripts that are now dead code. - Rebuild `npm run check` into three real stages: JSON syntax, knowledge-base structure, and 25 product-behavior checks (new scripts/check-readiness.mjs replaces the deleted devtools-readiness runner). Repoint check-content-safety and related scripts off harness onto the product code they verify. - Reconcile AGENTS.md, PROJECT_SUMMARY.md, LAUNCH_TODO.md, and project.config.json to reference knowledge/ and `npm run check`. - Refresh .gitignore: drop stale harness ignores, ignore the mcp-gateway/ tool artifact. Verified: `npm run check` passes (13 JSON files, 14 articles, 25 product checks) and `git diff --check` is clean. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本项目不再需要 AI/开发协作台账(模型与 agent 已能独立工作)。本次将
harness/中仍然有效的项目知识提炼为一等公民的knowledge/知识库,其余台账全部删除,并把npm run check重建为对产品代码的真实校验。改动
knowledge/(14 篇):产品定位、用户旅程、架构、数据模型、信任安全、隐私安全、分享归因、设计 UI、开发验证、部署运维、上线就绪 + 索引与维护指南。user_id_hash(不可逆哈希,仅粗粒度去重,禁止写入原始身份)。harness/(约 135 个文件) 及 24 个仅服务台账的证据生成/校验脚本(已是死代码)。npm run check为三段真实检查:JSON 语法 → 知识库结构 → 25 个产品行为门禁。新增scripts/check-readiness.mjs取代已删除的 devtools-readiness 运行器;check-content-safety等脚本从 harness 依赖切换到直接校验产品代码。AGENTS.md、PROJECT_SUMMARY.md、LAUNCH_TODO.md、project.config.json改为指向knowledge/与npm run check。.gitignore:移除失效的harness/*忽略规则,新增忽略mcp-gateway/工具产物。净变化:+3288 / −23991 行。
验证
npm run check通过:13 个 JSON、14 篇文章、25 个产品检查。git diff --check干净(已清理 EOF 空行)。aaa与project.private.config.json确认被忽略,未进入提交。🤖 Generated with Claude Code